using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityShippingAddressesCreateExtend
{
		public static ShippingAddresses ToCreateEntity(this RequestShippingAddressesDto dto)
		{
			return new ShippingAddresses
			{
				SaDetaiedlAddress = dto.detaiedlAddress,
				SaPostalCode = dto.postalCode,
				SaRecipientName = dto.recipientName,
				SaRecipientPhone = dto.recipientPhone,
				SaShippingId = dto.shippingId,
				SaUser = dto.user,
			};
		}
	}
}
